const goodsBaseData = {
  state: {
    enterpriseConfig: {},
    dict: {}
  },
  mutations: {
    ENTERPRISE_CONFIG: (state, config) => {
      state.enterpriseConfig = config
    },
    DICT: (state, dict) => {
      state.dict = dict
    }
  },
  actions: {
    setEnterpriseConfig({ commit }, config) {
      commit('ENTERPRISE_CONFIG', config)
    },
    setDict({ commit }, dict) {
      commit('DICT', dict)
    }
  }
}

export default goodsBaseData
